package date;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;

public class JKD8Date {
    public static void main(String[] args) {
//        Date date=new Date();
        LocalDate now = LocalDate.now();
        System.out.println(now);
        LocalTime now1 = LocalTime.now();
        System.out.println(now1);
        LocalDateTime now2 = LocalDateTime.now();
        System.out.println(now2);
        LocalDateTime of = LocalDateTime.of(2022, 10, 10, 22, 22, 22, 22);
        System.out.println(of);
    }
}
